import $axios from '../index.js'

// 系统列表
function sysList(data) {
  const url = '/sysSetting/index'
  return $axios.get(url, data)
}

// 设置编辑
function sysUpdate(data) {
  const url = '/sysSetting/update'
  return $axios.post(url, data)
}
// 系统邮件配置清除
function emailClear(data) {
  const url = '/sysSetting/emailClear'
  return $axios.post(url, data)
}

// 设置编辑
function clearCache(data) {
  const url = '/sysSetting/clearCache'
  return $axios.post(url, data)
}
// 切换语言
function changeLang(data) {
  const url = '/websiteLang/changeLang'
  return $axios.post(url, data)
}
export default {
  sysList,
  sysUpdate,
  emailClear,
  clearCache,
  changeLang
}
